package com.lk.mall.service.impl;

import com.lk.mall.model.entity.GoodsInfo;
import com.lk.mall.mapper.GoodsInfoMapper;
import com.lk.mall.model.vo.MallIndexConfigGoodsVo;
import com.lk.mall.service.IGoodsInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lak
 * @since 2022-08-31
 */
@Service
public class GoodsInfoServiceImpl extends ServiceImpl<GoodsInfoMapper, GoodsInfo> implements IGoodsInfoService {
    @Resource
    private GoodsInfoMapper goodsInfoMapper;

    @Override
    public GoodsInfo getGoodInfoById(Long goodsId) {
        GoodsInfo goodsInfo=goodsInfoMapper.getGoodInfoById(goodsId);
        return goodsInfo;
    }
}
